package com.zt.yongxinbao.service.impl;

import com.zt.yongxinbao.entity.Goods;
import com.zt.yongxinbao.mapper.GoodsMapper;
import com.zt.yongxinbao.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    private GoodsMapper goodsMapper;
    @Override
    public List<Goods> selectAll() {
        return goodsMapper.selectAll();
    }

    @Override
    public Goods selectById(Integer id) {
        return goodsMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Goods> selectByTag(String tag) {
        return goodsMapper.selectByTag(tag);
    }
}
